/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cartones;

/**
 *
 * @author gilberto
 */
public class Beans {

    private int id = 0, id_carton = 0, detalle = 0, suma = 0;

    public Beans(int id_carton, int detalle, int suma) {
        this.id_carton = id_carton;
        this.detalle = detalle;
        this.suma = suma;
    }

    public Beans(int detalle) {
        this.detalle = detalle;
    }

    public void Clear_beans() {
        setId_carton(0);
        setDetalle(0);
        setSuma(0);
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the id_carton
     */
    public int getId_carton() {
        return id_carton;
    }

    /**
     * @param id_carton the id to set
     */
    public void setId_carton(int id_carton) {
        this.id_carton = id_carton;
    }

    /**
     * @return the detalle
     */
    public int getDetalle() {
        return detalle;
    }

    /**
     * @param detalle the detalle to set
     */
    public void setDetalle(int detalle) {
        this.detalle = detalle;
    }

    /**
     * @return the suma
     */
    public int getSuma() {
        return suma;
    }

    /**
     * @param suma the suma to set
     */
    public void setSuma(int suma) {
        this.suma = suma;
    }
}
